﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.Stack>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	堆场基本信息
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%=Model.Name %>基本信息</h2>
    <div style="margin-top:20px"><span>堆场名称：</span><span><%=Model.Name %></span></div>
    <div style="margin-top:20px"><span>所属公司：</span><span><%=Model.Factory.Name %></span></div>
    <div style="margin-top:20px"><span>堆场位置：</span><span><%=Model.Address %></span></div>
    <div style="margin-top:20px"><span>地理坐标：</span><span><%=Model.GeoPosition %></span></div>
    <div style="margin-top:20px"><span>堆场描述：</span></div>
    <div style="margin-top:5px"><%=Model.Description %></div>
    <%if(!string.IsNullOrEmpty(Model.SummaryPic)) {%>
    <div style="margin-top:20px"><span>堆场总图：</span></div>
    <div><img src="<%=Url.Content(Model.SummaryPic) %>" alt="堆场总图" /></div>
    <%} %>
    <%if(!string.IsNullOrEmpty(Model.Pic1)) {%>
    <div style="margin-top:20px"><span>图片一：</span></div>
    <div><img src="<%=Url.Content(Model.Pic1) %>" alt="图片一" /></div>
    <%} %>
    <%if(!string.IsNullOrEmpty(Model.Pic2)) {%>
    <div style="margin-top:20px"><span>图片二：</span></div>
    <div><img src="<%=Url.Content(Model.Pic2) %>" alt="图片二" /></div>
    <%} %>
    <%if(!string.IsNullOrEmpty(Model.Pic3)) {%>
    <div style="margin-top:20px"><span>图片三：</span></div>
    <div><img src="<%=Url.Content(Model.Pic3) %>" alt="图片三" /></div>
    <%} %>
</asp:Content>
